#include <iostream>
using namespace std;


char * my_strcpy(char * dest, const char * src)
{
    char * ret = dest;
    while (*src != '\0')
    {
        *dest = *src;
        dest++;
        src++;
    }
    *dest = '\0';
    return ret;
}


int main()
{
    char src[] = "hello world";
    char dest[20];
    char * ret = my_strcpy(dest, src);
    cout << ret << endl;

    return 0;
}